package com.suning.sawp.service.impl.oga.bi.support;

import com.suning.sawp.dto.oga.bi.DateAble;
import com.suning.sawp.dto.oga.bi.DevelopInfo;
import com.suning.sawp.dto.oga.bi.SaleAmountAble;
import com.suning.sawp.dto.oga.bi.StaffInfoAble;
import com.suning.sawp.po.bi.BIDevelopedSaleAble;
import com.suning.sawp.po.bi.BIStaffInfoAble;
import com.suning.sawp.po.bi.BIStatsDate;
import com.suning.sawp.po.bi.BiDevelopInfo;

/**
 * 处理根据接口对象拷贝逻辑
 * 
 * @author 13071602
 *
 */
public final class Populates {

    private Populates() {

    }

    public static void populateSaleAmount(SaleAmountAble dest, BIDevelopedSaleAble orig) {
        dest.setSaleAmount(orig.getDevelopedSale());
    }

    public static void populateStaffInfo(StaffInfoAble dest, BIStaffInfoAble orig) {
        dest.setStaffId(orig.getStaffId());
        dest.setStaffName(orig.getStaffName());
    }

    public static void populateDate(DateAble dest, BIStatsDate orig) {
        dest.setDate(orig.getStatsDate());
    }

    public static void populateDevelopInfo(DevelopInfo developInfo, BiDevelopInfo orig) {
        developInfo.setArrive(orig.getArriveNum());
        developInfo.setDeveloping(orig.getDevelopingNum());
        developInfo.setFollow(orig.getFollowNum());
        developInfo.setRecommend(orig.getRecommendNum());
    }

}
